import request from '@/utils/request'

// 查询参股基金-工商追踪列表
export function listGpBusinessEvent(query) {
  return request({
    url: '/gp/gpBusinessEvent/list',
    method: 'get',
    params: query
  })
}

// 查询参股基金-工商追踪详细
export function getGpBusinessEvent(id) {
  return request({
    url: '/gp/gpBusinessEvent/' + id,
    method: 'get'
  })
}

// 保存参股基金-工商追踪
export function saveGpBusinessEvent(data) {
  return request({
    url: '/gp/gpBusinessEvent/save',
    method: 'post',
    data: data
  })
}

// 删除参股基金-工商追踪
export function delGpBusinessEvent(id) {
  return request({
    url: '/gp/gpBusinessEvent/' + id,
    method: 'delete'
  })
}

// 导出参股基金-工商追踪
export function exportGpBusinessEvent(query) {
  return request({
    url: '/gp/gpBusinessEvent/export',
    method: 'get',
    params: query
  })
}

// // 用户头像上传
export function uploadAvatar(data) {
  return request({
    url: '/gp/gpBusinessEvent/avatar',
    method: 'post',
    data: data
  })
}
